package com.cqjtu.platform.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author pengyangyan
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "parking")
public class Parking extends BaseEntity {

    /**
     * 车库名称
     */
    @Column(name = "parking_name",nullable = false)
    private String parkingName;

    /**
     * 车库种类
     */
    @Column(name = "parking_sort_code")
    private String parkingSortCode;

    /**
     * 地理位置
     */
    @Column
    private String location;

    /**
     * 维度
     */
    @Column
    private Double latitude;

    /**
     * 经度
     */
    @Column
    private Double longitude;

    /**
     * 车库状态编码
     */
    @Column(name = "parking_status_code")
    private Integer parkingStatusCode;

    /**
     * 最大可停时间
     */
    @Column(name = "max_time")
    private Integer maxTime;

    /**P
     * 是否营业
     */
    @Column(name = "is_business")
    private Integer isBusiness;

    /**
     * 车位数量
     */
    @Column(name = "car_place_num")
    private Integer carPlaceNum;

    /**
     * 是否优惠
     */
    @Column(name = "has_cheap")
    private Integer hasCheap;

    /**
     * 折扣
     */
    @Column
    private Integer discount;

    /**
     * 车库电话
     */
    @Column(name = "parking_phone")
    private Integer parkingPhone;

    /**
     * 预约保留时间
     */
    @Column(name = "reservation_time")
    private Double reservationTime;

    /**
     * 车库图片描述
     */
    @Column(name = "pic_ids")
    private String picIds;


}
